#include "Point.h"


Point::Point(int x, int y)
{
  this->x = x;
  this->y = y;
}

int Point::getX() const
{
  return this->x;
}

int Point::getY() const
{
  return this->y;
}

void Point::setX(int a)
{
  this->x = a;
}

void Point::setY(int b)
{
  this->y = b;
}

std::istream& operator>>(std::istream& input, Point& A)
{
  std::cout<<"Coordonata x:";
  input>>A.x;
  std::cout<<"Coordonata y:";
  input>>A.y;
  return input;
}

std::ostream& operator<<(std::ostream& output, Point A)
{
  output<<"Punct(x:"<<A.x<<", y:"<<A.y<<")";
  return output;
}
